package com.qf.fanout_exchange;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * author:z
 * time:2021/12/16 19:29
 * description:
 */
@Component
@RabbitListener(queues = "ps_queue1")
public class PSListener1 {

    //mag:队列中的数据
    @RabbitHandler
    public void onMessage(String msg){
        System.out.println("广播模式=============1"+msg);
    }
}
